import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/house/index',
    method: 'get',
    params: query
  })
}

export function getStatusList() {
  return request({
    url: '/house/getStatusList',
    method: 'get'
  })
}

export function add(query) {
  return request({
    url: '/house/add',
    method: 'post',
    data: query
  })
}

export function update(query) {
  return request({
    url: '/house/update',
    method: 'post',
    data: query
  })
}

export function destroy(query) {
  return request({
    url: '/house/delete',
    method: 'get',
    params: query
  })
}
